import {ajax,base} from './config'

export const getDepartTree = params => { 
	return ajax.getMinData({url:'departController.do?getDepartTree', params});
};

export const getDataRuleList= params => {
  return ajax.getMinData({url:'api/dataRuleController/getDataRuleList.do',params:params})
};

export const getDataconditionList= params => {
  return ajax.getMinData({url:'api/dataRuleController/getDataconditionList.do',params:params})
};

export const getDataruleGroupList= params => {
  return ajax.getMinData({url:'api/dataRuleController/getDataruleGroupList.do',params:params})
};
export const delDatarule= params => {
  return ajax.getMinData({url:'api/dataRuleController/delDatarule.do',params:params})
};
export const saveDatarule= params => {
  return ajax.getMinData({url:'api/dataRuleController/saveDatarule.do',params:params})
};
export const getDataruleData= params => {
  return ajax.getMinData({url:'api/dataRuleController/getDataruleData.do',params:params})
};

/////////////////////////////////////////
export const delDataruleGroup= params => {
  return ajax.getMinData({url:'api/dataRuleController/delDataruleGroup.do',params:params})
};
export const saveDataruleGroup= params => {
  return ajax.getMinData({url:'api/dataRuleController/saveDataruleGroup.do',params:params})
};
export const getDataruleGroupData= params => {
  return ajax.getMinData({url:'api/dataRuleController/getDataruleGroupData.do',params:params})
};

/////////////////////////////////////////
export const delDataruleCondition= params => {
  return ajax.getMinData({url:'api/dataRuleController/delDataruleCondition.do',params:params})
};
export const saveDataruleCondition= params => {
  return ajax.getMinData({url:'api/dataRuleController/saveDataruleCondition.do',params:params})
};
export const getDataruleConditionData= params => {
  return ajax.getMinData({url:'api/dataRuleController/getDataruleConditionData.do',params:params})
};
export const getGroupListData= params => {
  return ajax.getMinData({url:'api/dataRuleController/getGroupListData.do',params:params})
};
export const saveRoleDataRule= params => {
  return ajax.getMinData({url:'api/dataRuleController/saveRoleDataRule.do',params:params})
};
export const getRoleRuleList= params => {
  return ajax.getMinData({url:'api/dataRuleController/getRoleRuleList.do',params:params})
};
export const delRoleDataRule= params => {
  return ajax.getMinData({url:'api/dataRuleController/delRoleDataRule.do',params:params})
};